// Author: Ivan Chau
package uk.ac.cam.kcic2.scene;

import uk.ac.cam.kcic2.math.Vector3D;

public class ColourCoeffs {

	public final Vector3D ambientCoeffs;
	public final Vector3D diffuseCoeffs;
	public final Vector3D specularCoeffs;
	public final int shininess;
	public final double refractiveIndex;
	public final Vector3D transmittance;

	public ColourCoeffs(double[] ambient, double[] diffuse, double[] specular, int shinyScalar, 
			double refractIndex, double[] transmitCoeffs){
		ambientCoeffs = new Vector3D(ambient);
		diffuseCoeffs = new Vector3D(diffuse);		
		specularCoeffs = new Vector3D(specular);
		shininess = shinyScalar;
		refractiveIndex = refractIndex;
		transmittance = new Vector3D(transmitCoeffs);
	}

	public double getAmbientCoeffs(int index){return ambientCoeffs.get(index);}
	public double getDiffuseCoeffs(int index){return diffuseCoeffs.get(index);}	
	public double getSpecularCoeffs(int index){return specularCoeffs.get(index);}
	public double getTransmittance(int index){return transmittance.get(index);}
}
